package com.campus.mapper;

import com.campus.entity.FileUploads;
import com.campus.entity.UserAvatars;

import java.util.List;

public interface FileUploadsMapper {
    //图片插入
    int insertFile(FileUploads fileUpload);
    //向数据库中插入对应的用户头像
    int insertUserAvatarFile(UserAvatars userAvatars);
    //根据用户的userid删除对应的头像数据库的头像
    void deleteUserAvatarFile(String userId);
    //根据用户ID获取用户头像信息
    UserAvatars getUserAvatarByUserId(String userId);
    int deleteFileByFileName(String filename);
}